package com.zx.order.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "order")//获取以order开头的配置信息，可无需@RefreshScope注解即可实现自动刷新
public class orderProperties {

    private String timeout;

    private String autoConfirm;

    private String dbUrl;
}
